package com.ccsu.joysport.controller;

import com.ccsu.joysport.dto.CollegeResponse;
import com.ccsu.joysport.service.SystemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ccsu/college")
public class CollegeController {

    @Autowired
    SystemConfigService systemConfigService;

    @GetMapping("/list")
    public CollegeResponse list() {
        return systemConfigService.getAllCollege();
    }

}
